// src/stores/index.js
import { defineStore } from "pinia";

export const useIndex = defineStore('index', {
    state: () => ({
        counter: 0
    }),
    actions: {
        increment() {
            this.counter++;
        },
        randomizeCounter() {
            this.counter = Math.round(100*Math.random());
        }
    }
});